<!--文件公示-->
<template>
  <div class="file-publicity-box">
    <PageTitle class="boxTitle" :text="title"></PageTitle>
    <div class="detailContent con-box">
      <ul>
        <li v-for="(item,index) in list" :key="index" @click="go(item)">
          <span>{{index+1}}、{{item.label}}</span>
          <uni-icons type="forward" size="18" color="#ccc"></uni-icons>
        </li>
      </ul>
      <ul>
        <li @click="gos()">
          <span>.</span>
        </li>
      </ul>
    </div>
    <FooterTel></FooterTel>
  </div>
</template>

<script>
import PageTitle from '../components/pageTitle.vue'
import FooterTel from '../components/footerTel.vue'
export default {
  name: 'Detail',
  components: {
    PageTitle,
    FooterTel
  },
  data () {
    return {
      list: [
        //   {
        //   label: '关于2023年采暖季中心城区天然气销售价格的通知',
        //   value: '/pages/filePublicity/priceNotice'
        // }, 
        {
          label: '关于中心城区城镇居民燃气工程安装试行收费标准转为正式收费标准的通知',
          value: '/pages/filePublicity/noticeCharge'
        }, {
          label: '关于做好居民用户安装自闭阀和燃气泄漏安全装置宣传有关工作的通知(报警器)',
          value: '/pages/filePublicity/publicityNotice'
        }, {
          label: '管道改迁预算表（2023）',
          value: '/pages/filePublicity/budgetSheet'
        }, {
          label: '气表收费公示',
          value: '/pages/filePublicity/gasPublicity'
        }, {
          label: '工商业工程安装单价公示表',
          value: '/pages/filePublicity/priceDisclosure'
        }, {
          label: '渝快码公示',
          value: '/pages/filePublicity/yuCode'
        }],
      title: null,
    };
  },
  async onShow () {

  },
  async onLoad (e) {
    var vm = this;
    vm.title = e.title
  },
  created () { },
  methods: {
    go (item) {
      var vm = this;
      vm.func.goto(item.value + '?title=' + item.label)
    },
    previewImage (i, list) {
      this.func.previewImg(i, list)
    },
    gos () {
      this.func.goto('/pages/menus/index?title=文件列表')
    }
  },
  mounted () {
    var vm = this;
  },
};
</script>

<style lang="scss" scoped>
@import "../../static/css/module.scss";
.file-publicity-box {
  padding-bottom: 10px;
  .boxTitle {
    margin: 10px 14px;
  }
  .detailContent {
    .imgContent {
      width: auto;
      img {
        width: 100%;
      }
    }
  }
  .detailContent {
    padding: 8px 0 8px 18px;
    margin: 14px;
    font-size: 15px;
    line-height: 22px;
    overflow: hidden;
    ul,
    li {
      padding: 0;
      margin: 0;
    }
    li {
      display: flex;
      align-items: center;
      padding: 14px 8px 14px 0;
      font-size: 15px;
      line-height: 22px;
      color: #222;
      border-bottom: 1px solid #f2f2f2;
      &:last-child {
        border-bottom: none;
      }
      span {
        width: calc(100% - 30px);
        word-break: break-all;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2; /* 超出几行省略 */
        overflow: hidden;
      }
      .uni-icons {
        display: inline-block;
        text-align: right;
        width: 30px;
      }
    }
  }
}
</style>
